package com.ruoyi.store.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 库存盘点详情对象 finer_stock_taking_detail
 *
 * @author lmj
 * @date 2024-11-04
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StockTakingDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 盘点详情id
     */
    private Integer id;

    /**
     * 盘点单id
     */
    @Excel(name = "盘点单id")
    private Integer takingId;

    /**
     * 商品id
     */
    @Excel(name = "商品id")
    private Integer goodsId;
    private String proName;

    /**
     * 实存数量
     */
    @Excel(name = "实存数量")
    private Integer realNum;

    /**
     * 库存数量
     */
    @Excel(name = "库存数量")
    private Integer stock;

    /**
     * 盘盈数量
     */
    @Excel(name = "盘盈数量")
    private Integer takingMore;

    /**
     * 盘库数量
     */
    @Excel(name = "盘库数量")
    private Integer takingLess;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /**
     * 修改人
     */
    @Excel(name = "修改人")
    private String modifyBy;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyDate;

    /**
     * 是否删除
     */
    @Excel(name = "是否删除")
    private Integer isDel;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("takingId", getTakingId())
                .append("goodsId", getGoodsId())
                .append("realNum", getRealNum())
                .append("stock", getStock())
                .append("takingMore", getTakingMore())
                .append("takingLess", getTakingLess())
                .append("createBy", getCreateBy())
                .append("createDate", getCreateDate())
                .append("modifyBy", getModifyBy())
                .append("modifyDate", getModifyDate())
                .append("isDel", getIsDel())
                .toString();
    }
}
